<%@ page contentType="text/html; charset=UTF-8"%>
<% response.setHeader("Cache.Control","no-cache"); response.setHeader("Pragma","no-cache"); response.setDateHeader("Expires",0);%>

<jsp:useBean id="action" scope="request"
	class="swd.basic.system_name_maintain.Action" />
<jsp:useBean id="view" scope="request"
	class="swd.basic.system_name_maintain.View" />
<jsp:setProperty name="view" property="*" />
<%if (action.action(pageContext).equals("login")){return;} %>
<jsp:useBean id="DataView" scope="request"
	type="com.pub.database.DataView" />
<!-- 以�?�為DataView ?��?��設�?? -->
<jsp:useBean id="DataViewForm" scope="request"
	type="com.pub.database.DataViewForm" />
<jsp:setProperty name="DataViewForm" property="submitMethod"
	value="POST" />
<jsp:setProperty name="DataViewForm" property="pageRowCount" value="0" />
<jsp:setProperty name="DataViewForm" property="nowPageNum" />
<jsp:setProperty name="DataViewForm" property="dataViewAction" />
<jsp:setProperty name="DataViewForm" property="filterCol" />
<jsp:setProperty name="DataViewForm" property="filterValue" />
<jsp:setProperty name="DataViewForm" property="dvOrderByFields" />
<jsp:setProperty name="DataViewForm" property="dvOrderBySeq" />

<html>
<head>
<title><%=view.getprgTitle()%></title>
<LINK HREF="/SWD/workflow.css" REL="STYLESHEET" TYPE="TEXT/CSS">
<script type="text/javascript" language="javascript1.2"
	src="/PUBPAGE/general/commscript.js"></script>
<script type="text/javascript" language="javascript1.2"
	src="/PUBPAGE/general/commhtmlscript.js"></script>
<SCRIPT type="" LANGUAGE="javascript1.2" SRC="/SWD/general/swd.js"></SCRIPT>
<script language="javascript" type="">
   function fc_set_sysowner(){
         var varURL="/SWD/pages/pub/set_sysowner.jsp?sys_no="+document.all("sys_no").value;
         ret=window.showModalDialog(varURL,"_blank","status:no");
         if(ret==null){return;}
              document.all("sys_manager").value=ret;
   }

      function saveRowSn(rowsn){
         if(document.all.item('rowsn').value.indexOf(rowsn)>-1){
            return;
         }
         if(document.all.item('rowsn').value==''){
           document.all.item('rowsn').value=rowsn;
         } else{
           document.all.item('rowsn').value=document.all.item('rowsn').value + ',' + rowsn;
         }
      }


</script>
</head>
<body bgcolor="#ffffff" onload="<%=view.getOnloadScript()%>">
<TABLE BORDER="0" HEIGHT="20" CELLPADDING="0" CELLSPACING="0">
	<TR>
		<TD BACKGROUND="/SWD/pub_images/title_bg.gif">
		<DIV ALIGN="LEFT"><IMG SRC="/SWD/pub_images/title01.gif"
			WIDTH="18" HEIGHT="24" HSPACE="0" alt="" /><IMG
			SRC="/SWD/pub_images/glass.gif" WIDTH="12" HEIGHT="8" alt="" /></DIV>
		</TD>
		<TD ALIGN="LEFT" HEIGHT="20" VALIGN="MIDDLE"
			BACKGROUND="/SWD/pub_images/title_bg.gif" CLASS="TITLE">步驟1、系統編號維護</TD>
		<TD BACKGROUND="/SWD/pub_images/title_bg.gif">
		<DIV ALIGN="RIGHT"><IMG SRC="/SWD/pub_images/glass.gif"
			WIDTH="12" HEIGHT="8" alt="" /><IMG SRC="/SWD/pub_images/title02.gif"
			WIDTH="18" HEIGHT="24" HSPACE="0" alt="" /></DIV>
		</TD>
	</TR>
</TABLE>
<br />
<form action="<%=request.getRequestURI() %>" method="POST">
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="0" WIDTH="500px">
	<TR>
		<TD style="" WIDTH="5%"><INPUT TYPE="BUTTON" VALUE="新增"
			CLASS="button b_normal"
			ONCLICK="javascript:document.all.item('prgAction').value='insert';document.forms[0].submit();" /></TD>
		<TD style="" WIDTH="5%"><INPUT TYPE="BUTTON" VALUE="存檔"
			CLASS="button b_normal"
			ONCLICK="javascript:document.all.item('prgAction').value='save';document.forms[0].submit();" /></TD>
		<TD style="" WIDTH="5%"><INPUT TYPE="BUTTON" VALUE="存檔"
			CLASS="button b_normal"
			ONCLICK="javascript:document.all.item('prgAction').value='update';document.forms[0].submit();" /></TD>
		<TD style="" WIDTH="5%"><INPUT TYPE="BUTTON" VALUE="查詢"
			CLASS="button b_normal"
			ONCLICK="javascript:document.all.item('prgAction').value='query';document.forms[0].submit();" /></TD>
		<TD style="" WIDTH="5%"><INPUT TYPE="BUTTON" VALUE="刪除"
			CLASS="button b_normal"
			ONCLICK="javascript:document.all.item('prgAction').value='del';document.forms[0].submit();" /></TD>
		<TD style="" WIDTH="5%"><INPUT TYPE="BUTTON"
			VALUE="<%=view.getBtnExitTitle()%>" CLASS="button b_normal"
			ONCLICK="javascript:document.all.item('prgAction').value='exit';document.forms[0].submit();" /></TD>
		<TD WIDTH="70%"></TD>
	</TR>
	<TR>
		<TD colspan=5><font color="red"><%=(view.getTipMessage()!=null ? "工作提示:"+ view.getTipMessage() : "")%></font>
		</TD>
	</TR>
</TABLE>

<TABLE BORDER="0" WIDTH="400px" CELLSPACING="1" CELLPADDING="0">
	<TR>
		<TD nowrap WIDTH="20%" CLASS="td_head"><%=(view.getsys_no_readonly() ? "" :"<IMG SRC=\"/SWD/pub_images/star.gif\">")%><%=view.getsys_noTitle()%></TD>
		<TD WIDTH="80%" CLASS="td_content"><INPUT TYPE="TEXT"
			NAME="sys_no" SIZE="40" MAXLENGTH="40"
			VALUE="<%=(view.getsys_no()!=null ? view.getsys_no() : "")%>"
			CLASS="<%=(view.getsys_no_readonly() ? "input_noborder" : "input_window hand")%>"
			ondblclick="fc_get_sys_data(this);" /></TD>
	</TR>
	<TR>
		<TD nowrap WIDTH="20%" CLASS="td_head"><%=(view.getsys_name_readonly() ? "" : "<IMG SRC=\"/SWD/pub_images/star.gif\">")%>
		<%=view.getsys_nameTitle() %></TD>
		<TD CLASS="td_content" WIDTH="30%"><INPUT TYPE="TEXT"
			NAME="sys_name" SIZE="40" MAXLENGTH="40"
			VALUE="<%=(view.getsys_name()!=null ? view.getsys_name() : "")%>"
			class="<%=(view.getsys_name_readonly() ? "input_noborder" : "input")%>" />
		</TD>
	</TR>
	<TR>
		<TD nowrap WIDTH="20%" CLASS="td_head"><%=(view.getsys_manager_readonly() ? "" : "<IMG SRC=\"/SWD/pub_images/star.gif\">")%><%=view.getsys_managerTitle() %></TD>
		<TD CLASS="td_content" WIDTH="30%"><INPUT TYPE="TEXT"
			NAME="sys_manager" SIZE="40" MAXLENGTH="40"
			class="<%=(view.getsys_manager_readonly() ? "input_noborder" : "input_window hand")%>"
			VALUE="<%=(view.getsys_manager()!=null ? view.getsys_manager() : "")%>"
			<%=(view.getsys_manager_readonly() ? "readonly" : "ondblclick='javascript:fc_set_sysowner()'")%>
			readonly /></TD>
	</TR>
</TABLE>
<INPUT TYPE="HIDDEN" NAME="prgAction" VALUE="<%=view.getPrgAction()%>" />
<INPUT TYPE="HIDDEN" NAME="prgStatus" VALUE="<%=view.getPrgStatus()%>" />
<INPUT TYPE="HIDDEN" NAME="flowAction" VALUE="<%=view.getFlowAction()%>" />
<INPUT TYPE="HIDDEN" NAME="flowStatus" VALUE="<%=view.getFlowStatus()%>" />
<INPUT TYPE="HIDDEN" NAME="sys_report_no"
	VALUE="<%=view.getsys_report_no()%>" /></form>
</body>
</html>
